package com.zyj.mds;

import com.zyj.mds.service.QueryService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class MultiDataSourceApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(MultiDataSourceApplication.class, args);
        QueryService queryService = context.getBean(QueryService.class);
        queryService.doQuery();
    }

}
